/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package model;

import java.util.Vector;

/**
 *
 * @author zimi
 */
public class Diet {
//TODO wydzielenie klasy do profilu

    private Vector forbiddenIngredients;

    public boolean addForbiddenIngredient(Product ingredient) {
        if(forbiddenIngredients.contains(ingredient))
        {
            return false;
        }
        forbiddenIngredients.addElement(ingredient);
        return true;
    }

    public boolean removeForbiddenIngredient(Product ingredient) {
        return forbiddenIngredients.removeElement(ingredient);
    }

}